package psn.qiuyiping.autocad.dxffile;

@Dxf0Name("CLASS")
public class DxfClassDef extends DefaultDxf0 {
    @DxfCode(1)
    String               name;
    @DxfCode(2)
    String               clsname;
    @DxfCode(90)
    int                  bifFlag;
    @DxfCode(91)
    int                  count;
    @DxfCode(280)
    int                  isProxy;
    @DxfCode(281)
    int                  isEntity;

    @Override
    public void readDxfBody(DxfProcessContext context, DxfData<Object> item) {
        switch (item.code) {
        case 3:
            String appname = (String) item.getVal();
            context.getFile().registerClass(appname, this);
        default:
            super.readDxfBody(context, item);
        }
    }
}
